package com.drug.controller;

import com.drug.domain.Result;
import com.drug.service.ManufacturerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ManufacturerController {

    @Autowired
    private ManufacturerService manufacturerService;

    /**
     * 查询所有的生产企业
     * @return
     */
    @ResponseBody
    @RequestMapping(value = "/ManufacturerController/fandAll", produces = "application/json; charset=utf-8")
    public Result fandAll(){
        return manufacturerService.selectAll();
    }
}
